# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=chathistorysync
pkgver=0.1.0
pkgrel=3
pkgdesc="A tool for syncing IRC logs via the CHATHISTORY extension"
url="https://sr.ht/~emersion/chathistorysync"
arch="all"
license="AGPL-3.0-only"
makedepends="go scdoc"
source="
	$pkgname-$pkgver.tar.gz::https://git.sr.ht/~emersion/chathistorysync/archive/v$pkgver.tar.gz
"
subpackages="$pkgname-doc"
builddir="$srcdir/$pkgname-v$pkgver"

build() {
	make
}

check() {
	go test ./...
}

package() {
	make install PREFIX=/usr DESTDIR="$pkgdir"
}

sha512sums="
94a98b5f3334cb32ea4efe53c7bb5d06b9406e16c0b27bc6437b65a32f4c490509cccb50dfad6bd38e8beccb0e8fc08ddc31f45897ac18f0d7e299924bc22dbe  chathistorysync-0.1.0.tar.gz
"
